<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Purchase extends Model
{
    public function admin()
    {
        return $this->hasOne(Admins::class,'id','admin_id');
    }

    public function product()
    {
        return $this->hasOne(Product::class,'id','product_id');
    }
}
